<?php
require __DIR__ . '/../bootstrap.php';

$em = require __DIR__ . '/../example/em.php';

$simId = $_POST['sim_id'];
$active = $_POST['active']; // 0 или 1


$sim = $em->find("Entity\Sim", $simId);
$sim->setActive($active);

$em->flush();

?>
